package com.transaction.seataorder.exception;

import com.fasterxml.jackson.databind.util.JSONPObject;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author ausu
 * @version 1.0
 * @description: TODO
 * @date 2023/1/10 17:15
 */
@RestControllerAdvice
public class GlobalException {

    @ExceptionHandler(IdempotentException.class)
    public String idempotentException(IdempotentException e) {
        return e.getMessage();
    }
}
